package com.chen.dao;

import com.chen.bean.Comment;
import com.chen.bean.CommentUser;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface CommentMapper {
    void insertComment(Comment comment);

    Integer getTotalSubNum(String title);

    Integer getTotalNum(String title);

    List<Comment> getCommentList(HashMap map);

    CommentUser getComUserByName(String username);

    CommentUser getComUserById(Integer targetId);

    List<Comment> getSubComList(@Param("id") Integer id,@Param("title") String title);
}
